﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MODEL;
using System.Data;

namespace BLL
{
   public class UsersBLL
    {
       public Users Login(long id, string password)
       {
           return new DAL.UsersDAL().Login(id,password); 
       }
       public void UpDateIp(long id, string ip)
       {
            new DAL.UsersDAL().UpDateIp(id,ip);
       }
       public Users SelectById(long id)
       {
           return new DAL.UsersDAL().SelectById(id); 
       }
       public Users SelectByIp(string ip)
       {
           return new DAL.UsersDAL().SelectByIp(ip); 
       }
       public DataTable GetAll()
       {
           return new DAL.UsersDAL().GetAll();
       }
       public long[] GetAllFriendsId(long id)
       {
           return new DAL.UsersDAL().GetAllFriendsId(id);
       }
       public void Insert(Users moble)
       {
          new  DAL.UsersDAL().Insert(moble);
       }
       public bool UpDateFaceId(int faceId, long Id)
       {
           return new DAL.UsersDAL().UpDateFaceId(faceId,Id);
       }
       public bool UpDateDetila(Users moble, long id)
       {
           return new DAL.UsersDAL().UpDateDetila(moble,id);
       }
       public bool UpDateLimits(int FriendshipPolicyId, string newpassword, long id)
       {
           return new DAL.UsersDAL().UpDateLimits(FriendshipPolicyId,newpassword,id);
       }
       public bool UpDateIsLogin(bool islogin, long Id)
       {
           return new DAL.UsersDAL().UpDateIsLogin(islogin, Id);
       }
       public DataTable SelectByIpTable(string ip)
       {
           return new DAL.UsersDAL().SelectByIpTable(ip);
       }
       public DataTable SelectByIdTable(long id)
       {
           return new DAL.UsersDAL().SelectByIdTable(id);
       }
       public DataTable GetAllsearch()
       {
           return new DAL.UsersDAL().GetAllsearch();
       }
       public DataTable SelectBySexAgeTable(int minage, int maxage, string sex)
       {
           return new DAL.UsersDAL().SelectBySexAgeTable(minage,maxage,sex);
       }
    }
}
